package com.easygem.common.model.business;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * @author 何维佳
 * @version 1.0
 * @className UserRole
 * @Description TODO
 * @date 2025/1/15 20:06
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("")
@Table(name = "`user_role`")
public class UserRole {
    @Id
    @Column(name = "`user_id`")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long user_id;

    @Column(name = "`role_id`")
    @ApiModelProperty("角色id")
    private Long role_id;
}
